namespace _250210作业.Model
{
    using System;
    using System.Collections.Generic;
    using System.ComponentModel.DataAnnotations;
    using System.ComponentModel.DataAnnotations.Schema;
    using System.Data.Entity.Spatial;

    public partial class Menus
    {
        [System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Usage", "CA2214:DoNotCallOverridableMethodsInConstructors")]
        public Menus()
        {
            Authority = new HashSet<Authority>();
        }

        [Key]
        public int menuID { get; set; }

        [Required]
        [StringLength(50)]
        public string menuName { get; set; }

        [Required]
        [StringLength(200)]
        public string url { get; set; }

        public int parentID { get; set; }

        [Required]
        [StringLength(50)]
        public string icon { get; set; }

        public DateTime lastTime { get; set; }

        [System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Usage", "CA2227:CollectionPropertiesShouldBeReadOnly")]
        public virtual ICollection<Authority> Authority { get; set; }
    }
}
